package com.hy.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName RECEIVE_APPLY_DETAIL
 */
@Data
public class ReceiveApplyDetail implements Serializable {
    /**
     * 
     */
    private Long lymxid;

    /**
     * 
     */
    private Long lysqid;

    /**
     * 
     */
    private Long wpid;

    /**
     * 
     */
    private Long sqnum;

    /**
     * 
     */
    private Long djnum;

    /**
     * 
     */
    private BigDecimal djje;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ReceiveApplyDetail other = (ReceiveApplyDetail) that;
        return (this.getLymxid() == null ? other.getLymxid() == null : this.getLymxid().equals(other.getLymxid()))
            && (this.getLysqid() == null ? other.getLysqid() == null : this.getLysqid().equals(other.getLysqid()))
            && (this.getWpid() == null ? other.getWpid() == null : this.getWpid().equals(other.getWpid()))
            && (this.getSqnum() == null ? other.getSqnum() == null : this.getSqnum().equals(other.getSqnum()))
            && (this.getDjnum() == null ? other.getDjnum() == null : this.getDjnum().equals(other.getDjnum()))
            && (this.getDjje() == null ? other.getDjje() == null : this.getDjje().equals(other.getDjje()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLymxid() == null) ? 0 : getLymxid().hashCode());
        result = prime * result + ((getLysqid() == null) ? 0 : getLysqid().hashCode());
        result = prime * result + ((getWpid() == null) ? 0 : getWpid().hashCode());
        result = prime * result + ((getSqnum() == null) ? 0 : getSqnum().hashCode());
        result = prime * result + ((getDjnum() == null) ? 0 : getDjnum().hashCode());
        result = prime * result + ((getDjje() == null) ? 0 : getDjje().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", lymxid=").append(lymxid);
        sb.append(", lysqid=").append(lysqid);
        sb.append(", wpid=").append(wpid);
        sb.append(", sqnum=").append(sqnum);
        sb.append(", djnum=").append(djnum);
        sb.append(", djje=").append(djje);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}